package com.snail.list.collection;

import java.util.LinkedList;

public class MyStack {

    private LinkedList<String> linkList = new LinkedList<String>();

    public void push(String str){
        linkList.addFirst(str);
    }

    public String pop(){
        return linkList.removeFirst();
    }

    public String peek(){
        return linkList.peek();
    }

    public Boolean isEmpty(){
        return linkList.isEmpty();
    }
}
